#include <stdio.h>
int* judge(int arr[], int len)
{
	int arr2[10] = { 0 };
	int start = 0; int end = len-1; int count = len; int s = 0; int e = 9;
	while (count)
	{
		if (arr[start] % 2 == 0)
		{
			arr2[e] = arr[start];
			start++;
			count--;
			e--;
		}
		else
		{
			arr2[s] = arr[start];
			s++;
			start++;
			count--;
		}
	}
	return arr2;
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int len = 10;
	int *p= judge(arr, len);
	int i = 0;
	for(i=0;i<10;i++)	
	{
		printf("%d",*(p+i));
	}
	return 0;
}